const axiosApi = {

    get: function (url, params) {
        return axios({
            method: 'get',
            url,
            params, // get 请求时带的参数
        }).then(response => response.data);
    },

    post: function (url, params) {
        return axios({
            method: 'post',
            url,
            data: params,
        }).then(response => response.data);
    }
}